package com.repair.payment.facade;

import com.repair.api.pay.request.PayQueryPageRequest;
import com.repair.api.pay.request.PayQueryRequest;
import com.repair.api.pay.request.param.PayQueryParam;
import com.repair.api.pay.response.PayQueryResponse;
import com.repair.api.pay.response.vo.PaymentInfoVO;
import com.repair.api.pay.service.PayRefundFacadeService;
import com.repair.base.response.PageResponse;
import com.repair.payment.service.PaymentRefundService;
import com.repair.rpc.config.Facade;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author chunyu
 * @since 2024/10/21,20:57
 */
@DubboService
public class PayRefundFacadeServiceImpl implements PayRefundFacadeService {

    @Autowired
    private PaymentRefundService paymentRefundService;


    @Override
    @Facade
    public PageResponse<PaymentInfoVO> queryRefundPayList(PayQueryPageRequest<PayQueryParam> request) {
        return paymentRefundService.queryRefundPayList(request);
    }

    @Override
    @Facade
    public PayQueryResponse<PaymentInfoVO> queryRefundPayDetail(PayQueryRequest request) {
        return paymentRefundService.getPaymentDetail(request);
    }
}
